package kr.saeildamil.androidstudy_second;

import kr.saeildamil.androidstudy_second.actionbar.ActionBarMain;
import kr.saeildamil.androidstudy_second.ani.AnimationMain;
import kr.saeildamil.androidstudy_second.animator.Ch24Main;
import kr.saeildamil.androidstudy_second.br.Ch29Main;
import kr.saeildamil.androidstudy_second.clipboard.Ch27Main;
import kr.saeildamil.androidstudy_second.cp.Ch26Main;
import kr.saeildamil.androidstudy_second.draw.Ch22Main;
import kr.saeildamil.androidstudy_second.fileio.Ch25Main;
import kr.saeildamil.androidstudy_second.fragment.FragmentMain;
import kr.saeildamil.androidstudy_second.gesture.Ch31Main;
import kr.saeildamil.androidstudy_second.multimedia.Ch33Main;
import kr.saeildamil.androidstudy_second.network.Ch28Main;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}

	public void mOnClick(View v) {
		switch (v.getId()) {
		case R.id.main_ch20_btn:
			startActivity(new Intent(this, FragmentMain.class));
			break;
		case R.id.main_ch21_btn:
			startActivity(new Intent(this, ActionBarMain.class));
			break;
		case R.id.main_ch22_btn:
			startActivity(new Intent(this, Ch22Main.class));
			break;
		case R.id.main_ch23_btn:
			startActivity(new Intent(this, AnimationMain.class));
			break;
		case R.id.main_ch24_btn:
			startActivity(new Intent(this, Ch24Main.class));
			break;
		case R.id.main_ch25_btn:
			startActivity(new Intent(this, Ch25Main.class));
			break;
		case R.id.main_ch26_btn:
			startActivity(new Intent(this, Ch26Main.class));
			break;
		case R.id.main_ch27_btn:
			startActivity(new Intent(this, Ch27Main.class));
			break;
		case R.id.main_ch28_btn:
			startActivity(new Intent(this, Ch28Main.class));
			break;
		case R.id.main_ch29_btn:
			startActivity(new Intent(this, Ch29Main.class));
			break;
		case R.id.main_ch30_btn:
			startActivity(new Intent(this, Ch31Main.class));
			break;
		case R.id.main_ch31_btn:
			startActivity(new Intent(this, Ch33Main.class));
			break;

		}
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}